package cn.longwi.lwse.domain;


/**
 * 响应状态码
 */
public enum ResponseCode {

    SUCCESS(200,"授权成功"),
    DIR_NOT_EXITS(7000,"授权目录不存在"),
    LICENSE_EXPIRE(70001,"授权码已过期"),
    LICENSE_INVALID(70002,"授权码无效"),
    //RSA public key无效
    LICENSE_INVALID_KEY(70003,"授权码校验Key无效"),
    DIR_EMPTY(7005,"授权目录配置错误"),
    //硬件与授权码信息不匹配
    LICENSE_HARDWARE_INVALID(7005,"授权码无效");

    private int code;

    private String msg;

    ResponseCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }
    public void setCode(int code) {
        this.code = code;
    }
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
}
